<?php

/**
 * THIS FILE MUST BE EDIT FOR CONFIGURATION ADJUSTMENTS
 * 
 * @author Pablo
 * @since 1.0
 */

global $_CONFIG;

if(!isset($_CONFIG))
	$_CONFIG = new stdClass();
	
/******************************************************
 *					  	DATABASE					  *
 ******************************************************/

$_CONFIG->dbuser = "malhumor_admin";
$_CONFIG->dbpass = "diamonddoor1";
$_CONFIG->dbname = "malhumor_blg";
$_CONFIG->dbhost = "localhost";
$_CONFIG->dbprefix = "blg_";

/******************************************************
 *					  	PATHS						  *
 ******************************************************/

$_CONFIG->site_url= 'http://localhost/blog_php/public_html/';
$_CONFIG->site_url_relative= '/blog_php/public_html/';
$_CONFIG->site_path= (dirname(__DIR__)).DS;

$_CONFIG->data_dir = dirname(dirname(__DIR__)).DS.'data';
$_CONFIG->cache_dir= dirname(dirname(__DIR__)).DS.'cache';

$_CONFIG->log_file= (dirname(__DIR__)).DS.'blg_log.txt';

/******************************************************
 *					  MORE PATHS					  *
 ******************************************************/

$_CONFIG->url_error_403= 'http://localhost/blog_php/public_html/'; //Forbidden
$_CONFIG->url_error_404= 'http://localhost/blog_php/public_html/'; //Not found

/******************************************************
 *					  	 SITE						  *
 ******************************************************/

$_CONFIG->language= 'es';
$_CONFIG->site_title= 'Web Title';
$_CONFIG->site_image_url= $_CONFIG->site_url.'_graphics/default/logo/logo.png';
$_CONFIG->favicon_relative_path= '_graphics/favicon.ico';

$_CONFIG->password_min_length= 6;
$_CONFIG->username_min_length= 4;
$_CONFIG->site_guid= 1;

$_CONFIG->site_view= 'default';

$_CONFIG->messages_duration= 10000; //ms

/******************************************************
 *					  PHP CONFIG					  *
 ******************************************************/

$_CONFIG->upload_max_filesize_mb= 1;
$_CONFIG->upload_max_filesize= ($_CONFIG->upload_max_filesize_mb * 1024 * 1024); //bytes
ini_set('upload_max_filesize', $_CONFIG->upload_max_filesize);
ini_set('post_max_size', $_CONFIG->upload_max_filesize);

date_default_timezone_set('Europe/Madrid');
